package com.liming.common.excel;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * @author liming
 * @date 2025/5/15
 */
@Data
@Slf4j
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class DefaultExcelListener<S, C> extends AbstractExcelListener<S, C> {

    /**
     * 服务层
     **/
    // private final DefaultService defaultService;
    public DefaultExcelListener(Boolean isSave) {
        super(isSave);
    }

    @Override
    protected List<C> convertData() {
        // 转换数据
        return (List<C>) getSourceData();
    }

    @Override
    protected void saveData() {
        // 保存数据代码
    }
}
